import os

from celery import platforms, Celery

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'news.settings')

app = Celery('news', broker='redis://@localhost:6379/1', backend='redis://@localhost:6379/2')
app.config_from_object('django.conf:settings')
platforms.C_FORCE_ROOT = True
app.autodiscover_tasks(['mainapp', ])
